import platgo as pg


num = 'multi'
enc = 'real'
other = None
D = 20
cal_obj=['x[:, 0:1]','( 1 + 9 * mean(x[:, 1:],1,keepdims=True))*(1-sqrt(x[:,0:1]/(1+9*mean(x[:,1:],1,keepdims=True))))']
cal_con = None
pro = pg.UserProblem(num, enc, other, D, ub=1, lb=0, cal_obj=cal_obj, cal_con=cal_con)
maxgen = 100
Algorithm = pg.algorithms.NSGA2(maxgen=maxgen, problem=pro)

pop = Algorithm.go(100)

print(pop)